package com.orphan.audit.dao;

import com.orphan.audit.po.UserDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yichen
 * @since 2021-07-14
 */
@Repository("UserDetailMapper")
public interface UserDetailMapper extends BaseMapper<UserDetail> {
    @Select("select * from t_user_detail")
    List<UserDetail>getAll();

    @Update("update t_user_detail t set t.status=#{status} where u_id=#{uId}")
    int update(UserDetail userDetail);


}
